<template>
    <div>
      <h1>60年后,某保健品推销排队列表</h1>
      
      <tr v-for="(obj,index) in nameArr" :key="index">
        <td>{{ obj.name }}</td>
      </tr>
      <button @click="but">发了一枚鸡蛋</button>
    </div>
  </template>
  
  <script>
  export default {
    data(){
      return{
          nameArr: [
       { name: '春雷'
       },{ name: '大帅'
       },{ name: '阿鑫'
       },{ name: '明杰'
       },{ name: '瑶瑶'
       },{ name: '戴戴'
       },{ name: '智慧'
       },{ name: '胡忆华'
       },{ name: '鞠洋'
       },{ name: '阿珍'
       }]
      }
    },
    methods:{
      but(){
        this.nameArr.push(this.nameArr[0])
        this.nameArr.shift()
      }
    }
  }
  </script>
  
  <style>
  
  </style>